all: balancer

balancer: balancer.cpp worker.cpp balancer-app.cpp ../utils/libutils.a
	g++ -std=c++0x -o balancer balancer.cpp worker.cpp balancer-app.cpp -L../utils -lpthread -lutils

../utils/libutils.a: ../utils/Makefile
	make -f ../utils/Makefile -C ../utils

clean:
	rm balancer
